package com.mxf.miaosha.exception;

import com.mxf.miaosha.result.CodeMsg;
import com.sun.org.apache.bcel.internal.classfile.Code;

public class GlobalException extends RuntimeException{

    private CodeMsg codeMsg;

    public GlobalException(CodeMsg codeMsg) {
        super(codeMsg.toString());
        this.codeMsg = codeMsg;
    }

    public CodeMsg getCodeMsg() {
        return codeMsg;
    }
}
